const express = require('express');

let server = express();
server.listen(8080);

server.use('/article', require('./routers/article'));
server.use('/user', require('./routers/user'));
server.use((req, res)=>{    // 如果路由没有匹配的，就返回404
  res.send('404');
});